#include <stdio.h>
int main() 
{
    int a = 0,i = 0,ocount = 0,jcount = 0;
    scanf("%d",&a);
   for(i = 1;i<=a;i++)
   {
    if(i % 2 ==0 ) ocount++;
    else jcount++;
   }
   printf("%d %d",jcount,ocount);
    return 0;
}
